package com.breezelin.freshmarket.network.asynctasks;

/**
 * Created by Breeze Lin
 * 2016/9/26 14:25
 * breezesummerlin@163.com
 */

import com.breezelin.freshmarket.entities.data.UserInfo;
import com.breezelin.freshmarket.network.FMAsyncTask;
import com.breezelin.freshmarket.network.apis.ProfileApi;

/**
 * 获取用户信息的异步任务
 */
public abstract class UserInfoTask extends FMAsyncTask<Void, Void, UserInfo> {

	/**
	 * 获取用户信息的异步任务
	 */
	public UserInfoTask() {
		super(ProfileApi.GET_USER_INFO);
	}

	@Override
	protected UserInfo doInBackground(Void... params) {
		return ProfileApi.getUserInfo().getBody();
	}
}
